﻿using System;
using System.Collections.Generic;
using Eagles.Application.Model.Common;

namespace Eagles.Application.Model.Task.CreateTask
{
    /// <summary>
    /// 任务发布
    /// </summary>
    public class CreateTaskRequest : RequestBase
    {
        /// <summary>
        /// 任务Id
        /// </summary>
        public int TaskId { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 任务发起人
        /// </summary>
        public int TaskFromUser { get; set; }
        
        /// <summary>
        /// 任务负责人
        /// </summary>
        public int TaskToUserId { get; set; }

        /// <summary>
        /// 任务开始时间
        /// </summary>
        public DateTime TaskBeginDate { get; set; }

        /// <summary>
        /// 任务结束时间
        /// </summary>
        public DateTime TaskEndDate { get; set; }

        /// <summary>
        /// 任务内容
        /// </summary>
        public string TaskContent { get; set; }

        /// <summary>
        /// 是否评论
        /// </summary>
        public int CanComment { get; set; }

        /// <summary>
        /// 1:不公开 2 支部 3 组织
        /// </summary>
        public int IsPublic { get; set; }

        /// <summary>
        /// 创建类型 0上级发布 1下级向上级申请  
        /// </summary>
        public int CreateType { get; set; }

        /// <summary>
        /// 附件集合
        /// </summary>
        public List<Attachment> AttachList { get; set; }
    }
}